from rest_framework import serializers
from journal.models import *
from accounts.models import Info


class FractionSer(serializers.ModelSerializer):
    class Meta:
        model = Info
        fields = ('id', 'name', 'number', 'credit')


class FractionSerializers(serializers.ModelSerializer):
    class Meta:
        model = Fraction
        fields = '__all__'
